package com.niuwa.p2p.dao.message;

import java.util.Map;

import com.niuwa.p2p.dao.MyBatisDao;
import com.niuwa.p2p.entity.message.CustMsgSet;
import com.niuwa.p2p.entity.message.CustMsgSetKey;

@MyBatisDao
public interface CustMsgSetDao {
    int deleteByPrimaryKey(CustMsgSetKey key);

    int insert(CustMsgSet record);

    int insertSelective(CustMsgSet record);

    CustMsgSet selectByPrimaryKey(CustMsgSetKey key);

    int updateByPrimaryKeySelective(CustMsgSet record);

    int updateByPrimaryKey(CustMsgSet record);
    
    Integer selectCustMsgCount(Long id);
    
    /**
     * 获取用户对指定消息模板的设置
     * @param custId
     * @param msgTempNo
     * @return
     */
   CustMsgSet  getUserSetSendMethod(Map<String,Object> map);
}